﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>Jardim ESW</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
                 @if (User.IsInRole("Administrador"))
                 { 
                    @Html.ActionLink("HomeAdmin", "HomeAdmin", "Home")
                    @Html.ActionLink("Criar Utilizador", "Register", "Account")
                 }
                 else
                 {
                      if (User.IsInRole("Funcionario"))
                      { 
                    @Html.ActionLink("HomeFuncionario", "HomeFuncionario", "Home")
                      }
                      else
                      {
                          if (User.IsInRole("EE"))
                          { 
                    @Html.ActionLink("HomeEE", "HomeEE", "Home")
                          }
                          else
                          {
                    @Html.ActionLink("Home", "Index", "Home") 
                          }
                      }
                 }
                
            </div>
            
        </header>
        <div class="contexto">
        
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("Os nossos serviços", "Servicos", "Home")</li>
                    <li>@Html.ActionLink("As nossas atividades", "Actividades", "Home")</li>
                    <li>@Html.ActionLink("A nossa equipa", "NossaEquipa", "Home")</li>
                    <li>@Html.ActionLink("Galeria de Fotos", "Galeria", "Home")</li>
                    <li>@Html.ActionLink("Localização", "Localizacao", "Home")</li>
                    <li>@Html.ActionLink("Contactos", "Contactos", "Home")</li>
                </ul>

            
        <section id="main">
            @RenderBody()
        </section>
        </div>
        <footer>
        </footer>
    </div>
</body>
</html>
